package com.qk.management.controller;

import com.qk.common.PageResult;
import com.qk.common.Result;
import com.qk.dto.operateLog.OperateLogListDTO;
import com.qk.entity.OperateLog;
import com.qk.management.service.OperateLogService;
import com.qk.vo.operateLog.OperateLogListVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * &#064;author：zzq
 * &#064;createTime：2025/10/17 17:12
 * &#064;description： 
 */
@RestController
@RequestMapping("/logs")
public class OperateLogController {
    @Autowired
    private OperateLogService operateLogService;
    //日志列表
    @GetMapping
    public Result operateLogList(OperateLogListDTO dto) {
        PageResult<OperateLogListVO> pageResult = operateLogService.operateLogList(dto);
        return Result.success(pageResult);
    }
}
